﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BasicDataManager.aspx.cs"
    Inherits="EnvironmentManagerSystem.BasicDataManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Style/css.css" rel="stylesheet" type="text/css" />

    <script src="Script/artDialog.js?skin=aero" type="text/javascript"></script>

    <script src="Script/iframeTools.js" type="text/javascript"></script>

    <script src="Script/BasicDataManagerBig.js" type="text/javascript"></script>

    <script src="Script/BasicDataManagerSub.js" type="text/javascript"></script>

    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .myline /*输入线*/
        {
            border-right: #000000 0px solid;
            border-top: #000000 0px solid;
            border-left: #000000 0px solid;
            border-bottom: #000000 1px solid;
        }
    </style>
</head>
<body style="background: #e0e2e7; overflow: visible;">
    <form id="form1" runat="server">
    <div>
        <table class="style1" align="center" style="width: 100%;">
            <tr>
                <td colspan="2" style="height: 25px; text-align: left; vertical-align: top;">
                    <input id="Button1" class="anniu1" type="button" value="添加大类" runat="server" onclick="frm.show()" />&nbsp;
                    <input id="Button2" class="anniu1" type="button" value="添加小类" runat="server" onclick="frm1.show()" />&nbsp;
                    <input id="Button3" class="anniu1" type="button" value="修改大类" runat="server" onclick="frm2.show()" />&nbsp;
                    <asp:Button CssClass="anniu1" runat="server" Text="删除大类" ID="DelBigKind" OnClick="DelBigKind_Click" />&nbsp;
                    <asp:Button CssClass="anniu1" runat="server" Text="刷新" ID="DelSmallKind" OnClick="DelSmallKind_Click" />
                </td>
            </tr>
            <tr>
                <td style="height: 540px; width: 25%;">
                    <asp:ListBox ID="ListBox1" runat="server" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged"
                        Style="width: 100%; height: 100%;" AutoPostBack="true"></asp:ListBox>
                </td>
                <td style="text-align: center; vertical-align: top; width: 75%;">
                    <asp:GridView ID="gdvUser" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" GridLines="Vertical" Width="99%" BorderColor="Silver" HorizontalAlign="Center"
                        EmptyDataText="请选择大类" AllowPaging="True" PageSize="20" OnPageIndexChanged="gdvUser_PageIndexChanged"
                        OnPageIndexChanging="gdvUser_PageIndexChanging" OnRowEditing="gdvUser_RowEditing"
                        DataKeyNames="id" OnRowCancelingEdit="gdvUser_RowCancelingEdit" OnRowDeleting="gdvUser_RowDeleting"
                        OnRowUpdating="gdvUser_RowUpdating" OnDataBound="gdvUser_DataBound">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F0F2F3" Font-Size="12px" Height="16px" HorizontalAlign="Center"
                            VerticalAlign="Middle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" DataField="ID" ReadOnly="true" />
                            <asp:BoundField HeaderText="名称" DataField="DataValue" />
                            <asp:BoundField HeaderText="备注" DataField="DataValueMemo" />
                            <asp:TemplateField ShowHeader="False" HeaderText="操作">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                        Text="更新"></asp:LinkButton>
                                    &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                        Text="取消"></asp:LinkButton>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                                        Text="编辑"></asp:LinkButton>
                                    &nbsp;<asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="Delete"
                                        Text="删除" OnClientClick="javascript:return confirm('是否删除')"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle ForeColor="Black" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle Font-Bold="True" ForeColor="#00286F" CssClass="right_list01_tit" BackColor="#507CD1" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
